/* CSS variables */

:root {
    --primary: #ddd;
    --dark: #333;
    --light: #fff;
    --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
}

@font-face {
    /* font-family: xtreem;
    src: url('/assets/fonts/XtreemMedium_PERSONAL_USE.ttf'); */
    font-family: xtreem;
    src: url('/assets/fonts/XtreemFat_PERSONAL_USE.ttf');
}

html {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
}

body {
    background: #ccc;
    margin: 30px 50px;
    line-height: 1.4;
    overflow-x: hidden;
}

.btn {
    background: var(--dark);
    color: var(--light);
    padding: 0.6rem 1.3rem;
    text-decoration: none;
    border: 0;
}

.btn-info {
    padding: 8rem 10rem;
}

img {
    max-width: 100%;
}

.wrapper {
    display: grid;
    grid-gap: 20px;
}


/** navigation **/

.main-nav ul {
    display: grid;
    grid-gap: 20px;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(4, 1fr);
}

.main-nav a,
.welcomeuser {
    background: var(--primary);
    display: block;
    text-decoration: none;
    padding: 0.8rem;
    text-align: center;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.main-nav a:hover,
welcomeuser:hover {
    background: var(--dark);
    color: var(--light);
}

.main-nav ul li a,
.welcomeuser p {
    font-family: xtreem;
    color: red;
    font-weight: bolder;
}


/* .logout {
    display: none;
} */


/**ToP CONTAINER */

.top-container {
    display: grid;
    grid-gap: 20px;
    grid-template-areas: 'showcase showcase top-box-a' 'showcase showcase top-box-b';
}


/*showcase*/

.showcase {
    grid-area: showcase;
    min-height: 400px;
    background: url('/assets/img/img1.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    box-shadow: var(--shadow);
}

.showcase h1 {
    font-family: xtreem;
    font-size: 5rem;
    margin-bottom: 0;
    color: var(--light);
}

.k {
    font-size: 8rem;
    color: red;
}

.showcase p {
    font-size: 1.3rem;
    margin-top: 0;
    color: var(--light);
}


/* TOP BOX */

.top-box {
    background: var(--primary);
    display: grid;
    align-items: center;
    justify-items: center;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.top-box .price {
    font-family: xtreem;
    font-size: 2.5rem;
}

.d {
    font-size: 4rem;
    color: red;
}

.top-box-a {
    grid-area: top-box-a;
}

.top-box-b {
    grid-area: top-box-b;
}


/* BOXES*/

.boxes {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.box {
    max-height: 50%;
    background: var(--primary);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    opacity: 50%;
    align-content: space-between;
}

.box:hover {
    transition: ease-in-out;
    scale: 105%;
    opacity: 100%;
}

.box h3 {
    font-family: xtreem;
    font-size: 3.5rem;
    background: var(--light);
    padding: 0.5rem;
    text-align: center;
    margin-top: 100%;
    border-radius: 50%;
}

.box p {
    color: red;
    font-family: xtreem;
    font-size: 2.5rem;
    padding: 0.5rem;
    background: var(--dark);
    text-align: center;
    margin-top: 10%;
    border-radius: 50%;
}

.box1 {
    background: url('/assets/img/box1.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.box2 {
    background: url('/assets/img/box2.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.box3 {
    background: url('/assets/img/box3.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.box4 {
    background: url('/assets/img/box4.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.box5 {
    background: url('/assets/img/box5.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.box6 {
    background: url('/assets/img/box6.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.box7 {
    background: url('/assets/img/box7.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}

.box8 {
    background: url('/assets/img/box8.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
}


/* INFO */

.info {
    background: var(--primary);
    box-shadow: var(--shadow);
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem;
}

.info2 {
    background: var(--primary);
    box-shadow: var(--shadow);
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem;
}

.info2label {
    justify-self: end;
    font-size: 1.5rem;
}

.info2input {
    justify-self: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.info2submit {
    text-align: center;
    padding: 1% 2%;
    font-family: xtreem;
    border: 1px black solid;
    background: var(--primary);
    box-shadow: var(--shadow);
}

.info2submit input {
    font-family: xtreem;
    font-size: 1.8rem;
    color: red;
    letter-spacing: 6px;
}

.info2inputtext {
    font-size: 1.8rem;
}

.info2submit :hover {
    background: var(--light);
    border: 1px black solid;
}


/*portfolio */

.portfolio {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.portfolio img {
    width: 100%;
    box-shadow: var(--shadow);
}


/* footer */

footer {
    margin-top: 2rem;
    background: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 1rem;
}


/* media queries */

@media (max-width: 800px) {
    .top-container {
        grid-template-areas: 'showcase showcase' 'top-box-a top-box-b';
    }
    .showcase {
        grid-area: showcase;
        min-height: 100vh;
        width: 90vw;
        padding: 0.3rem;
    }
    .showcase h1 {
        font-size: 2.5rem;
    }
    .main-nav ul {
        grid-template-columns: 1fr;
    }
    .main-nav ul {
        grid-gap: 5px;
    }
    .main-nav ul li {
        grid-template-columns: 1fr;
        padding: 0.2rem;
        width: 90vw;
    }
    .top-container {
        width: 30vw;
    }
    .top-box {
        width: 30vw;
    }
    .top-box h4,
    p,
    div {
        font-size: 1.1rem;
        padding: 0.2rem;
        overflow-x: hidden;
    }
    .videosearch {
        max-width: 80vw;
    }
    .videosearch div,
    input {
        max-width: 100vw;
        padding: 1rem;
        margin: auto;
    }
    .result-heading {
        max-width: 80vw;
        padding: 1rem;
    }
    .info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .info .btn {
        display: block;
        text-align: center;
        margin: auto;
    }
    .info2 {
        display: block;
        text-align: center;
        margin: auto;
    }
    .portfolio {
        max-width: 80vw;
        padding: 1.6rem;
    }
    .boxes {
        display: grid;
        grid-gap: 10px;
        width: 80vw;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    .box {
        max-height: 80%;
    }
    .boxes h3 {
        font-size: 0.8rem;
        margin-top: 380%;
        padding: 1rem;
    }
    .boxes p {
        font-size: 0.2rem;
        margin-top: 10%;
    }
    .footer {
        max-width: 80vw;
        padding: 1rem;
        text-align: center;
    }
}

@media(max-width: 500px) {
    .top-container {
        grid-template-areas: 'showcase' 'top-box-a' 'top-box-b';
    }
    .showcase {
        grid-area: showcase;
        min-height: 100vh;
        width: 80vw;
        padding: 0.4rem;
    }
     .top-container {
        width: 40vw;
    }
    .top-box{
        width: 100vw;
    }
    .main-nav ul {
        grid-gap: 5px;
    }
    .main-nav ul li {
        grid-template-columns: 1fr;
        padding: 0.4rem;
        width: 80vw;
    }
    .top-box {
        max-width: 70vw;
    }
    .videosearch {
        max-width: 80vw;
    }
    .videosearch div,
    input {
        max-width: 60vw;
        padding: 1rem;
        margin: auto;
    }
    .videos-data-container{
        width: 100vw;
        padding: 0.2rem;
    }
    .info {
        max-width: 70vw;
        padding: 0.5rem;
        text-align: center;
    }
    .info iframe {
        margin: auto;
    }
    .portfolio {
        max-width: 80vw;
        padding: 0.5rem;
        text-align: center;
        grid-template-columns: 1fr;
    }
    .boxes {
        text-align: center;
        max-width: 50%;
        display: grid;
        grid-gap: 3px;
        grid-template-rows: repeat(auto-fit, minmax(100px, 1fr));
    }
    .boxes div {
        margin-top: 1rem;
        padding: 0.2rem;
    }
    .boxes h3 {
        margin-top: 50%;
    }
    .footer {
        max-width: 80vw;
        padding: 1rem;
        text-align: center;
    }
}


/* animaciones */

.animate__animated.animate__zoomIn {
    --animate-duration: 1s;
}


/* utility */

html.sr .load-hidden {
    visibility: hidden;
}


/* extension */

html.sr .boxes {
    visibility: hidden;
}

html.sr .imgportfolio {
    visibility: hidden;
}


/* videos */

.videos-data-container {
    background: #F0F0F0;
    border: #e0dfdf 1px solid;
    padding: 1px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 2%;
}

.response {
    padding: 10px;
    margin-top: 10px;
    border-radius: 2px;
}

.error {
    background: #fdcdcd;
    border: #ecc0c1 1px solid;
}

.success {
    background: #c5f3c3;
    border: #bbe6ba 1px solid;
}

.result-heading {
    text-align: center;
    align-self: center;
    margin: 10px 0px;
    padding: 1px 1px 1px 1px;
    border-bottom: #e0dfdf 1px solid;
    font-size: 2rem;
    box-shadow: var(--shadow);
}

iframe {
    border: 0px;
    margin-bottom: 5%;
}

.video-tile {
    display: inline-block;
    margin: 10px 10px 20px 10px;
}

.videoDiv {
    width: 240px;
    height: 150px;
    display: inline-block;
    margin: 1% 2%;
}

.videoTitle {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.videoDesc {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.videoInfo {
    width: 200px;
}


/***CHAT **********************/


/* Button used to open the chat form - fixed at the bottom of the page */

.chat-popup {
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 280px;
}

.open-button {
    background-color: #555;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 280px;
}


/* The popup chat - hidden by default */

.form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
}


/* Add styles to the form container */

.form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
}


/* Full-width textarea */

.form-container textarea {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
    resize: none;
    min-height: 200px;
}


/* When the textarea gets focus, do something */

.form-container textarea:focus {
    background-color: #ddd;
    outline: none;
}


/* Set a style for the submit/login button */

.form-container .btn {
    background-color: #4CAF50;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    opacity: 0.8;
}


/* Add a red background color to the cancel button */

.form-container .cancel {
    background-color: red;
}


/* Add some hover effects to buttons */

.form-container .btn:hover,
.open-button:hover {
    opacity: 1;
}